package com.zq.ssmdemo.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 员工信息表
 * </p>
 *
 * @author 张乔
 * @since 2024-06-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("employees")
public class Employees implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 员工唯一标识符
     */
    @TableId( type = IdType.AUTO)
    private Integer EmployeeId;

    private String Username;

    private String Password;

    /**
     * 员工出生日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate DateOf;

    @TableField(exist = false)
    private String DateOfS;

    @TableField(exist = false)
    private String HireDateS;

    /**
     * 员工性别
     */
    private String Gender;

    /**
     * 员工入职日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate HireDate;

    /**
     * 部门ID
     */
    private Integer DepartmentId;

    /**
     * 员工职位
     */
    private String Position;

/*
* 员工部门
* */
   @TableField(exist = false)
  private String  Department;


    /**
     * 员工邮箱
     */
    private String Email;

    /**
     * 员工电话号码
     */
    private String Phone;

    private byte[] avatar;

    @TableField(exist = false)
private String base64Avatar;

}
